package edu.nf.vac.announcement.service;

import edu.nf.vac.announcement.dao.AnnouncementDTO;
import edu.nf.vac.announcement.dao.AnnouncementPageDTO;

/**
 * @author LQJ
 * @date 2022/3/29
 */
public interface AnnouncementService {
    /**
     * 查询公告列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    AnnouncementPageDTO listAnnouncement(int pageNum ,int pageSize);

    /**
     * 增加公告
     * @param announcementDTO
     */
    void addAnnouncement(AnnouncementDTO announcementDTO);

    /**
     * 根据ID查询公告的列表
     * @param id
     * @return
     */
    AnnouncementDTO getAnnouncementById(int id);

    /**
     * 更新公告
     * @param announcement
     */
    void updateAnnouncement(AnnouncementDTO announcement);
}